package com.example.ssmxuankeback.service;

import com.example.ssmxuankeback.common.RestBean;
import com.example.ssmxuankeback.dto.UserDTO;
import com.example.ssmxuankeback.dto.UserPageQueryDTO;
import com.example.ssmxuankeback.vo.PageVO;
import com.example.ssmxuankeback.vo.UserVO;
import java.util.List;

public interface UserService {
    RestBean<UserVO> register(UserDTO dto);
    RestBean<UserVO> login(UserDTO dto);
    RestBean<UserVO> update(UserDTO dto);
    RestBean<UserVO> delete(Long userId);
    RestBean<UserVO> getUserById(Long userId);
    RestBean<PageVO<UserVO>> listByPage(UserPageQueryDTO queryDTO);
    RestBean<List<UserVO>> getUsersByClassId(Long classId);
    boolean hasStudentsInClass(Long classId);
}